<?php

/******
  This file contains functions that print the description of each
  database table.
******/

  function printClusterAds() {
    echo "<p><font size=+3><b>ClusterAds Tables</b></font><br />";
    echo "<font size=+2>Implemented as a horizontal-vertical " .
         "pair.<br />";
    echo "Contains information about jobs that are currently " .
         "in the system.</font></p>";
  }

  function printProcAds() {
    echo "<p><font size=+3><b>ProcAds Tables</b></font><br />";
    echo "<font size=+2>Implemented as a horizontal-vertical " .
         "pair.<br />";
    echo "Contains information about jobs that are currently " .
         "in the system.</font></p>";
  }

  function printJobsHistory() {
    echo "<p><font size=+3><b>Jobs_History Tables</b></font><br />";
    echo "<font size=+2>Implemented as a horizontal-vertical " .
         "pair.<br />";
    echo "Contains information about jobs that have exited " .
         "the system.</font></p>";
  }

  function printMachines() {
    echo "<p><font size=+3><b>Machines Tables</b></font><br />";
    echo "<font size=+2>Implemented as a horizontal-vertical " .
         "pair.<br />";
    echo "Contains information about the current state of machines " .
         "in the pool.</font></p>";
  }

  function printMachinesHistory() {
    echo "<p><font size=+3><b>MachinesHistory Tables</b></font><br />";
    echo "<font size=+2>Implemented as a horizontal-vertical " .
         "pair.<br />";
    echo "Contains information about the state of machines " .
         "in the pool prior to the current state.</font></p>";
  }

  function printFiles() {
    echo "<p><font size=+3><b>Files Table</b></font><br />";
    echo "<font size=+2>Contains information about individual " .
         "files that were used by jobs in the Condor pool. " .
         "</font></p>";
  }

  function printFileUsages() {
    echo "<p><font size=+3><b>FileUsages Table</b></font><br />";
    echo "<font size=+2>Associates individual files with the job " .
         "that used the file.</font></p>";
  }

  function printTransfers() {
    echo "<p><font size=+3><b>Transfers Table</b></font><br />";
    echo "<font size=+2>Contains information about file transfers " .
         "that occurred in the pool.</font></p>";
  }

  function printMatches() {
    echo "<p><font size=+3><b>Matches Table</b></font><br />";
    echo "<font size=+2>Shows the job-machine matches that were " .
         "made in each matchmaking cycle.</font></p>";
  }

  function printRejects() {
    echo "<p><font size=+3><b>Rejects Table</b></font><br />";
    echo "<font size=+2>Contains information about jobs that were " .
         "rejected during a matchmaking cycle.</font></p>";
  }

  function printDaemons() {
    echo "<p><font size=+3><b>Daemons Tables</b></font><br />";
    echo "<font size=+2>Implemented as a horizontal-vertical " .
         "pair.<br />";
    echo "<font size=+2>Contains the most recent status of the " .
         "daemons that report to Quill.</font></p>";
  }

  function printDaemonsHistory() {
    echo "<p><font size=+3><b>DaemonsHistory Tables</b></font><br />";
    echo "<font size=+2>Implemented as a horizontal-vertical " .
         "pair.<br />";
    echo "<font size=+2>Contains the previous information about the " .
         "daemons that report to Quill.</font></p>";
  }

  function printRuns() {
    echo "<p><font size=+3><b>Runs Table</b></font><br />";
    echo "<font size=+2>Contains information regarding on which " .
         "machine each job ran.</font></p>";
  }

  function printEvents() {
    echo "<p><font size=+3><b>Events Table</b></font><br />";
    echo "<font size=+2>Lists information about various events " .
         "that occurred during a job run in the system.</font></p>";
  }

  function printGenericMessages() {
    echo "<p><font size=+3><b>Generic_Messages Table</b></font><br />";
    echo "<font size=+2>Allows for the \cd\ team to add new types " .
         "of information to the database without having to change " .
         "the schema.</font></p>";
  }

  function printCurrencies() {
    echo "<p><font size=+3><b>Currencies Table</b></font><br />";
    echo "<font size=+2>Lists the time each machine last reported " .
         "to the database.</font></p>";
  }

  function printErrorSQLLogs() {
    echo "<p><font size=+3><b>Error_SQLLogs Table</b></font><br />";
    echo "<font size=+2>Contains the SQL errors that Quill " .
         "encounters while it is reading the SQL logs and making " .
         "SQL updates to the database.</font></p>";
  }

  function printMaintenanceLog() {
    echo "<p><font size=+3><b>Maintenance_Log Table</b></font><br />";
    echo "<font size=+2>Consists of records about database " .
         "maintenance events.</font></p>";
  }

  function printQuillDBMonitor() {
    echo "<p><font size=+3><b>QuillDBMonitor Table</b></font><br />";
    echo "<font size=+2>Holds the current size of the database in " .
         "megabytes, as reported by the Dbmsd.</font></p>";
  }

  function printQuillSchemaVersion() {
    echo "<p><font size=+3><b>Quill_Schema_Version Table " .
         "</b></font><br />";
    echo "<font size =+2>Contains the current version number of " .
         "the Quill schema.</font></p>";
  }

  function printThrowns() {
    echo "<p><font size=+3><b>Throwns Table</b></font><br />";
    echo "<font size=+2>Records information about log files that " .
         "were deleted because they exceeded the maximum size. " .
         "</font></p>";
  }

?>
